home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / sml_nj / 93src.lha / src / runtime / mac / os_mac.h < prev   
Encoding:
C/C++ Source or Header  |  1993-02-09  |  2.6 KB  |  118 lines

  1. /* os_mac.h */
  2.  
  3. /* extracted from os_mac.c, eEdit.c, ext_mac.c, eStyle.c  30Jun92  e */
  4. /* edited for Tricia  --  12Sep92  e  */
  5.  
  6. /* Macintosh specific stuff (for THINK C 5.0 compiler). */
  7.  
  8. #include <Retrace.h>
  9. #include <Folders.h>
  10.  
  11. /*
  12. #define USE_eTe_debug (1) */
  13.  
  14. #include "os_mac_eEdit.h"
  15. #define TeHANDLE eTeHandle
  16.  
  17. #define dfltTabs (8)
  18. #define dfltWrap (357)
  19. #define dfltAutoInd (0)
  20.  
  21. /* prototypes for eStyle.c and eKeys.c */
  22. void eStyleDlg( eRec **hE );
  23. void eEditCommand( eRec **hE, char ch, short modifiers, short style );
  24. void eTabCommand( eRec **hE, short modifiers, short style );
  25.  
  26. #define PREFS_FILENAME "\pSMLeNJ Preferences"
  27. void savePrefs( ConstStr255Param fn );
  28.  
  29. #define FontSize 9
  30. #define FontH 12
  31. #define FontW 6
  32. #define Border 3
  33. #define SBarWidth 15
  34.  
  35. #define ok_alertID        128
  36. #define ok_cancel_alertID 129
  37.  
  38. #define loading_dlogID 130
  39. #define about_dlogID   131
  40. #define find_dlogID    358
  41.  
  42. #define appleID   128
  43. #define fileID    129
  44. #define editID    130
  45. #define commandID 131
  46. #define windowsID 132
  47. #define specialID 133
  48. #define findID    134
  49.  
  50. #define newCommand       1
  51. #define openCommand      2
  52. #define closeCommand     3
  53. #define saveCommand      5
  54. #define saveasCommand    6
  55. #define revertCommand    7
  56. #define pgsetupCommand   9
  57. #define printCommand     10
  58. #define quitCommand      12
  59.  
  60. #define undoCommand       1
  61. #define cutCommand        3
  62. #define copyCommand       4
  63. #define pasteCommand      5
  64. #define clearCommand      6
  65. #define selAllCommand     7
  66. #define stylesCommand      9
  67. #define showPosnCommand      10
  68.  
  69. #define findCommand       1
  70. #define againCommand      2
  71. #define replaceCommand    3
  72. #define fEnterCommand     4
  73. #define replaceAllCommand 5
  74.  
  75.  
  76. #define interruptCommand  1
  77. #define helpCommand       3
  78.  
  79. #define appleM   0
  80. #define fileM    1
  81. #define editM    2
  82. #define findM    3
  83. #define commandM 4
  84. #define windowsM 5
  85. #define specialM 6
  86.  
  87. #define gc_cursorID 128
  88.  
  89. #define MAX_NB_WINDOWS 12
  90. #define FILENAME_LEN 256
  91. #define OUT_BUF_LEN 256
  92.  
  93. extern MenuHandle menus[7];
  94. extern TextStyle prefStylNormal;
  95. extern TextStyle prefStylHilite;
  96. extern TextStyle dfltStylNormal;
  97. extern TextStyle dfltStylHilite;
  98.  
  99. extern short prefTabs;
  100. extern short prefWrap;
  101. extern short prefAutoInd;
  102.  
  103. extern Cursor watch_cursor;
  104. extern Cursor gc_cursor;
  105. extern Cursor ibeam_cursor;
  106.  
  107. /*  added for Tricia  --  12Sep92  e  */
  108.  
  109. extern short interrupted;
  110.  
  111. void os_quit(void);
  112. WindowPeek os_console_new( unsigned char *name );
  113. long os_console_read(  WindowPeek wp, unsigned char *ptr, long cnt );
  114. long os_console_write( WindowPeek wp, unsigned char *ptr, long cnt );
  115. long os_console_close( WindowPeek wp );
  116.  
  117. /* end of os_mac.h */
  118.